API responses has mini-profiler content in them in development mode
Created by: runemadsen
When running Gitlab in development mode, reading a file with the API with this content:
This is my text!
... will return this content:
This is my text!
<p><script async="" type="text/javascript" id="mini-profiler" src="/api/mini-profiler-resources/includes.js?v=55905d0d15f4dc1e14b29260abce19b2" data-version="55905d0d15f4dc1e14b29260abce19b2" data-path="/api/mini-profiler-resources/" data-current-id="udzz067bnlho06rfxw70" data-ids="udzz067bnlho06rfxw70,vh75d8zgeczv6tufu3vn,hw80kqiqgbiflo00y247,fcstodytp0wxn021yxnd,3ffxdiuf7us5ss06tx3q,6s4eb5pix1ghab48ruop,1rnffw2vsbg0fyalgt7c,upvwba6rqezt0f1pfxfm,6a6h3cxuzkfcwy1hxono,hbw5b24sku43eaguay31" data-position="left" data-trivial="false" data-children="false" data-max-traces="10" data-controls="false" data-authorized="true" data-toggle-shortcut="Alt+P" data-start-hidden="false"></script></p>
<p><script async="" type="text/javascript" id="mini-profiler" src="/api/mini-profiler-resources/includes.js?v=55905d0d15f4dc1e14b29260abce19b2" data-version="55905d0d15f4dc1e14b29260abce19b2" data-path="/api/mini-profiler-resources/" data-current-id="8xd3ckw64mqfy2bywsj4" data-ids="8xd3ckw64mqfy2bywsj4,vh75d8zgeczv6tufu3vn,hw80kqiqgbiflo00y247,fcstodytp0wxn021yxnd,3ffxdiuf7us5ss06tx3q,6s4eb5pix1ghab48ruop,1rnffw2vsbg0fyalgt7c,upvwba6rqezt0f1pfxfm,6a6h3cxuzkfcwy1hxono,hbw5b24sku43eaguay31" data-position="left" data-trivial="false" data-children="false" data-max-traces="10" data-controls="false" data-authorized="true" data-toggle-shortcut="Alt+P" data-start-hidden="false"></script></p>
This is caused by the mini profiler, which should be disabled in the API responses.