Open borrrden opened 8 years ago
Right now the library forces us to choose one or the other (https://github.com/sta/websocket-sharp/blob/master/websocket-sharp/Net/HttpListener.cs#L512-L515). However, what if we want the option for either? Could you modify this so that it will accept an HTTP Basic header if present, but return a digest challenge if not? Or is that too case specific?
P.S. I've been able to implement this, so if you are interested I'll send a PR for this.
Right now the library forces us to choose one or the other (https://github.com/sta/websocket-sharp/blob/master/websocket-sharp/Net/HttpListener.cs#L512-L515). However, what if we want the option for either? Could you modify this so that it will accept an HTTP Basic header if present, but return a digest challenge if not? Or is that too case specific?