Skip to content

Commit 32bbb8d

Browse files
author
Chrono Law
committed
headers operator[] fix
1 parent 38c7198 commit 32bbb8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ngxpp/NgxHeaders.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class NgxHeaders final : public NgxWrapper<T>
5959

6060
return p->value;
6161
}
62+
63+
ngx_str_t operator[](const char* key) const
64+
{
65+
return operator[](string_ref_type(key));
66+
}
6267
public:
6368
void add(const kv_type& kv) const
6469
{

0 commit comments

Comments
 (0)