sta / sta/websocket-sharp

Browser displays html as plain text in Unity

Open
#64 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi,
I'm using websocket-sharp in my unity project, it works great in editor. However there are issues with http server after deployment - it sends requested file, but browser displays it as plain text - with header on top:

P/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Server: websocket-sharp/1.0
Date: Tue, 05 Aug 2014 14:28:15 GMT
Content-Length: 4484
Keep-Alive: timeout=15,max=100

...

App is running on exact same machine, only difference is running in editor or a standalone build.
Running on Windows 7, with Polish lang.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the HTTP server behavior in a Unity editor run and a standalone build on Windows 7, then compare the response headers and body sent to the browser. Done means the deployed build serves the requested HTML as rendered HTML rather than displaying the response headers and markup as plain text.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
backend, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.