Skip to content

Commit 3c58e30

Browse files
authored
Merge pull request fhessel#16 from fhessel/fix-empty-header-names
Return empty string instead of invalid null pointer, Closes fhessel#14
2 parents 73567af + 5d61581 commit 3c58e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

https/HTTPRequest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ std::string HTTPRequest::getHeader(std::string name) {
3939
if (h != NULL) {
4040
return h->_value;
4141
} else {
42-
return NULL;
42+
return std::string();
4343
}
4444
}
4545

0 commit comments

Comments
 (0)