Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Here is an example. This Go program (a compiler) generates and serves its own website: https://NN-512.com

Not a very good one - clicking the link produces a download dialog on Firefox (I'm guessing because the website neglects to indicate a Content-Type).

Ironically this is an argument against trying to do everything yourself - you might waste time chasing the long tail of thousands of little details that had been solved many times over elsewhere.



It does work with Firefox on my end...

Also hosting it yourself doesn't mean that you do everything yourself.

It would definitely spawn build plugins that do most of what you need if this practice actually establishes itself.


>clicking the link produces a download dialog on Firefox

Works fine for me (v90/Linux).


[flagged]


> It works for everyone except you. The Content-Type is right there, in the header.

I don't know what to tell you. It's not there.

https://dump.cy.md/9b2a31fa5184397159fe42a85c197242/16404476...

It is there if I check with cURL, though.

Edit: looks like this bug is triggered by the absence of Accept-Encoding in the request. When the server compresses the response, it neglects to include the Content-Type of the compressed content.

> You defend Microsoft, here and in other parts of this thread, as they sell the work of open source authors without attribution and in violation of explicit license statements in the code.

I did no such thing. Please stop.


[flagged]


You broke the site guidelines repeatedly and extremely badly in this thread. We ban accounts that do that.

Please review https://news.ycombinator.com/newsguidelines.html and don't do anything like this on HN again.


I am not, and have never been a Microsoft employee.

You can search online for my name / username to find my open-source contribution history, if you would like.

I hope that sufficiently answers your query.


[flagged]


I own zero shares of anything directly or indirectly.


[flagged]


No. I am not in the program nor requested access.

This is my last reply in this subthread; feel free to assume the same answer for all questions along the same line.

I also invite you to review the HN comment guidelines: https://news.ycombinator.com/newsguidelines.html


you just keep digging your own grave lol




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: