Skip to content

Commit

Permalink
applied same fix to set method
Browse files Browse the repository at this point in the history
git-svn-id: https://adam.cs.princeton.edu/svn/craq/src@4263 41643c41-6115-4a67-97d8-b2dbeab842be
  • Loading branch information
rucinski committed Apr 14, 2010
1 parent 1470d7b commit ca48a78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HttpStorage.Tc
Expand Up @@ -195,6 +195,7 @@ tamed void HttpStorage::set(ID_Value key, const blob* data, cbb ret_blob) {
char buff[MAX_BUF];
strbuf output;
const char *s_out;
str str_out;
char *crlf;
const char *start;
char *end;
Expand Down Expand Up @@ -246,7 +247,8 @@ tamed void HttpStorage::set(ID_Value key, const blob* data, cbb ret_blob) {
resp.tosuio()->rembytes(line_len);
line_len = resp.tosuio()->linelen();
}
s_out = str(output).cstr();
str_out = str(output);
s_out = (char *) str_out.cstr();
crlf = (char *) strstr(s_out, "\r\n\r\n");
if (crlf == NULL && strlen(s_out) > 0) {
cout << "crlf == NULL\n";
Expand Down

0 comments on commit ca48a78

Please sign in to comment.