03-fix-const.patch 794 B

1234567891011121314151617181920
  1. --- contrib/python/aiohttp/aiohttp/_http_parser.pyx (index)
  2. +++ contrib/python/aiohttp/aiohttp/_http_parser.pyx (working tree)
  3. @@ -393,7 +393,7 @@ cdef class HttpParser:
  4. self._has_value = False
  5. self._raw_headers.append((raw_name, raw_value))
  6. - cdef _on_header_field(self, char* at, size_t length):
  7. + cdef _on_header_field(self, const char* at, size_t length):
  8. cdef Py_ssize_t size
  9. cdef char *buf
  10. if self._has_value:
  11. @@ -404,7 +404,7 @@ cdef class HttpParser:
  12. buf = PyByteArray_AsString(self._raw_name)
  13. memcpy(buf + size, at, length)
  14. - cdef _on_header_value(self, char* at, size_t length):
  15. + cdef _on_header_value(self, const char* at, size_t length):
  16. cdef Py_ssize_t size
  17. cdef char *buf