mirror of
https://github.com/aria2/aria2.git
synced 2025-04-07 06:27:37 +03:00
2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use unsigned char for data store.
This commit is contained in:
parent
7578d5fb22
commit
fc0fa4203a
86 changed files with 378 additions and 312 deletions
|
@ -45,10 +45,10 @@ HttpHeaderProcessor::HttpHeaderProcessor():_limit(4096) {}
|
|||
|
||||
HttpHeaderProcessor::~HttpHeaderProcessor() {}
|
||||
|
||||
void HttpHeaderProcessor::update(const char* data, int32_t length)
|
||||
void HttpHeaderProcessor::update(const unsigned char* data, int32_t length)
|
||||
{
|
||||
checkHeaderLimit(length);
|
||||
strm.write(data, length);
|
||||
strm.write(reinterpret_cast<const char*>(data), length);
|
||||
}
|
||||
|
||||
void HttpHeaderProcessor::update(const std::string& data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue