{"thread":{"id":"23258","subject":"[BUG] remote curl fetches HTML documents","startedAt":"2010-03-30T20:06:21Z","lastAt":"2010-03-30T20:06:21Z","messageCount":1,"participants":["Ramkumar Ramachandra"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"138209","messageId":"f3271551003301306i7e7659acu4724fc9e5a575468@mail.gmail.com","threadId":"23258","inReplyTo":null,"subject":"[BUG] remote curl fetches HTML documents","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2010-03-30T20:06:21Z","receivedAt":"2010-03-30T20:06:21Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"Hi,\n\nI found a bug in the curl family of remote helpers. I've posted a\nbugfix by assuming as little about the URL that libcurl accepts as\npossible.\n\n$ git remote-http foo\nlist\n0000000000000000000000000000000000000000 html>\n0000000000000000000000000000000000000000 <head>\n0000000000000000000000000000000000000000 <title>OpenDNS</title>\n0000000000000000000000000000000000000000 </head>\n0000000000000000000000000000000000000000 </head>\n0000000000000000000000000000000000000000 <body id=\"mainbody\"\nonLoad=\"testforbanner();\" style=\"margin: 0px;\">\n<SNIP>\n\n$ git remote-http foo\nfetch 0000000000000000000000000000000000000000 html>\n\nerror: inflate: data stream error (incorrect header check)\nerror: File 0000000000000000000000000000000000000000\n(foo/objects/00/00000000000000000000000000000000000000) corrupt\nerror: Unable to find 0000000000000000000000000000000000000000 under foo\nCannot obtain needed object 0000000000000000000000000000000000000000\nerror: Fetch failed.\n\n-- Ram\n"}]}