Skip to content

Commit

Permalink
headers operator[] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrono Law committed Nov 23, 2015
1 parent 38c7198 commit 32bbb8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ngxpp/NgxHeaders.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class NgxHeaders final : public NgxWrapper<T>

return p->value;
}

ngx_str_t operator[](const char* key) const
{
return operator[](string_ref_type(key));
}
public:
void add(const kv_type& kv) const
{
Expand Down

0 comments on commit 32bbb8d

Please sign in to comment.