bjglass / gitiles

Automatically exported from code.google.com/p/gitiles
0 stars 0 forks source link

Sources are downloaded as base64 blobs #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. https://chromium.googlesource.com/angle/angle/+/master/src/libGLESv2.gypi
2. click txt link at the bottom - 
https://chromium.googlesource.com/angle/angle/+/master/src/libGLESv2.gypi?format
=TEXT

What is the expected output? What do you see instead?
Expected to see libGLESv2.gypi contents, but instead a file named libGLESv2.txt 
is downloaded, which contains base64 encoded source.

Original issue reported on code.google.com by techtonik@gmail.com on 23 Mar 2016 at 7:33

GoogleCodeExporter commented 8 years ago
This is working as intended. By returning base64 we prevent a browser from 
evaluating the contents of the page as say JavaScript or HTML loaded from the 
googlesource.com origin domain.

Just pass the response through a base64 decoder.

Original comment by sop@google.com on 23 Mar 2016 at 8:05