Commit Diff


commit - a1c3b3f820ef995a665ff0fe282c46ed545371de
commit + 75b0369cca6cf10dc7a8738e76057525dadddd10
blob - 857de2cde4eff29c68a2e9525413c97a06051ffd
blob + 87d69bad94d9b3ffd6d33cffcf06ff7f595919f3
--- dulwich/client.py
+++ dulwich/client.py
@@ -2007,7 +2007,7 @@ class AbstractHttpGitClient(GitClient):
         if isinstance(data, bytes):
             headers["Content-Length"] = str(len(data))
         resp, read = self._http_request(url, headers, data)
-        if not resp.content_type.startswith(result_content_type):
+        if resp.content_type.split(';')[0] != result_content_type:
             raise GitProtocolError(
                 "Invalid content-type from server: %s" % resp.content_type
             )