diff --git a/direct/src/http/http_bufferedreader.i b/direct/src/http/http_bufferedreader.i index 438a1e2892..af065e8290 100644 --- a/direct/src/http/http_bufferedreader.i +++ b/direct/src/http/http_bufferedreader.i @@ -186,7 +186,7 @@ inline int Http_BufferedReader::PumpCRRead(char * data, int maxdata, Socket_TC } //////////////////////////////////////////////////////////////////// // Function name : Http_BufferedReader::PumpHTTPHeaderRead -// Description : Will read a HTTP head ,, GET ..... or responce from web server +// Description : Will read a HTTP head ,, GET ..... or response from web server // // Return type : inline int // Argument : char * data diff --git a/direct/src/http/http_request.h b/direct/src/http/http_request.h index 0974880f00..a4b5a58acd 100644 --- a/direct/src/http/http_request.h +++ b/direct/src/http/http_request.h @@ -51,13 +51,13 @@ PUBLISHED: return _MyAddress.get_ip_port(); } - void AppendToResponce(const std::string &in) + void AppendToResponse(const std::string &in) { _writer+=in; } - void SendThisResponce(const std::string &in) + void SendThisResponse(const std::string &in) { _writer+=in; Finish(); diff --git a/direct/src/http/parsedhttprequest.h b/direct/src/http/parsedhttprequest.h index 3f98ec1d97..62c03188c0 100644 --- a/direct/src/http/parsedhttprequest.h +++ b/direct/src/http/parsedhttprequest.h @@ -53,23 +53,23 @@ public: }; /* -class ParsedHttpResponce +class ParsedHttpResponse { std::string _Raw_Text; - std::string _responce_header; + std::string _response_header; std::map _header_Lines; public: - std::string GetresponceCode() + std::string GetresponseCode() { std::string answer; - size_t pos = _responce_header.find_first_of(" "); + size_t pos = _response_header.find_first_of(" "); if(pos != std::string::npos) - answer = support::trim_tonew(_responce_header.substr(pos,100)); + answer = support::trim_tonew(_response_header.substr(pos,100)); pos = answer.find_first_of(" \t\n\r\0"); @@ -80,9 +80,9 @@ public: return answer; } - bool ParseThis(const std::string &responce) + bool ParseThis(const std::string &response) { - _Raw_Text = responce; + _Raw_Text = response; int line_number = 0; std::string work1(_Raw_Text); @@ -96,7 +96,7 @@ public: if(line_number == 0 && line1.substr(0,4) == "HTTP") { // the first line... - _responce_header = line1; + _response_header = line1; // printf("[%s]\n",line1.c_str()); } @@ -112,7 +112,7 @@ public: } - return !_responce_header.empty(); + return !_response_header.empty(); } size_t PullCR(std::string &src, std::string &dst)