diff mercurial/commands.py @ 42109:2a3c0106ded9

import: suppress accept: header irccloud and others may perform content negotation and reject (406) if the accept header does not match the mime type of the object
author timeless <timeless@mozdev.org>
date Fri, 12 Apr 2019 12:20:38 -0400
parents cecdf7418cf1
children d6437f414437
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Apr 12 12:06:13 2019 -0400
+++ b/mercurial/commands.py	Fri Apr 12 12:20:38 2019 -0400
@@ -3496,7 +3496,7 @@
                 else:
                     patchurl = os.path.join(base, patchurl)
                     ui.status(_('applying %s\n') % patchurl)
-                    patchfile = hg.openpath(ui, patchurl)
+                    patchfile = hg.openpath(ui, patchurl, sendaccept=False)
 
                 haspatch = False
                 for hunk in patch.split(patchfile):