jhhoward / MicroWeb

DOS Web browser for 8088 class machines
GNU General Public License v2.0
436 stars 31 forks source link

Add environment variable for enhanced user agent #13

Closed chabala closed 2 years ago

chabala commented 2 years ago

Proposed patch to resolve #11.

I thought offering the patch might help the discussion, since none was happening on the issue. I've not written any C++ in a long time, but this builds for me locally and seems to work as expected.

I provided more client details in HTTP_USER_AGENT and then hit http://whatsmyuseragent.org/ and they appeared. Old behavior is preserved if the env variable is unset.

chabala commented 2 years ago

Thank you for the merge! In retrospect, I should have added some documentation for this feature at the same time.