GHC 2017-04-29

8 comments.

, https://git.io/v9CAc in Homebrew/brew
pull: fix status code check in check_bintray_mirror
===================================================

Fix an issue in #2252. [Report by @ilovezfs](https://github.com/Homebrew/brew/pull/2252#issuecomment-298151694):

```
Josephs-MacBook-Pro:~ joe$ brew pull https://github.com/Homebrew/homebrew-core/pull/12969
==> Fetching patch 
Patch: https://github.com/Homebrew/homebrew-core/pull/12969.patch
==> Applying patch
Applying: openssl: remove support for universal build
Warning: The Bintray mirror https://dl.bintray.com/homebrew/mirror/openssl-1.0.2k.tar.gz is not reachable (HTTP status code 200).
```

The status code of the last redirect should be 2xx to be deemed successful. I don't remember why I was checking for 3xx; most likely a typo.

, https://git.io/v9CnI in Homebrew/brew
This is weird...

```
$ curl -I https://dl.bintray.com/homebrew/mirror/openssl-1.0.2k.tar.gz
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 29 Apr 2017 09:14:22 GMT
Content-Type: application/gzip
Content-Length: 5309236
Connection: keep-alive
Last-Modified: Sat, 29 Apr 2017 06:53:58 GMT
Accept-Ranges: none
ETag: 6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
X-Checksum-Sha1: 5f26a624479c51847ebd2f22bb9f84b3b44dcb44
X-Checksum-Sha2: 6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0

$ curl -sSL -D- -O https://dl.bintray.com/homebrew/mirror/openssl-1.0.2k.tar.gz
HTTP/1.1 302
Server: nginx
Date: Sat, 29 Apr 2017 09:14:32 GMT
Content-Length: 0
Connection: keep-alive
Location: https://akamai.bintray.com/6b/6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0?__gda__=exp=1493457992~hmac=933068c51648b2e46630426957f87fb807dcb2c32608ccac0f9002d9ee0ec26b&response-content-disposition=attachment%3Bfilename%3D%22openssl-1.0.2k.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19EwMpOdiUyB07KXMAu0IvhPWDlMRsFNUCw0jH1N3lGG8guHdJazQGFZRlCq67HdGu4ITbavFKcwn_ifBo8if-Lv7-v97cDVPHx4QdWRMOv-Y-v0ddGEN4h

HTTP/1.1 200 OK
Server: Apache
ETag: "f965fc0bf01bf882b31314b61391ae65:1491750840"
Last-Modified: Sun, 09 Apr 2017 15:09:29 GMT
Accept-Ranges: bytes
Content-Length: 5309236
Date: Sat, 29 Apr 2017 09:14:32 GMT
Connection: keep-alive
Content-Type: application/gzip
content-disposition: attachment;filename="openssl-1.0.2k.tar.gz"

$
```

Anyway, guess we should also accept 2xx status codes.

, https://git.io/v9CLm in jarun/nnn
That should do.

, https://git.io/v9Ck7 in jarun/nnn
Except `curses.h` does not define anything in the ASCII range, or even extended ASCII.

, https://git.io/v9Ck5 in jarun/nnn
Yeah, 0512 octal is 330 decimal.

, https://git.io/v9Ckd in jarun/nnn
It depends on OS and keyboard. You're getting `KEY_DC`.

, https://git.io/v9CkF in jarun/nnn
DEL is 127 though, and `wget_wch` for DEL returns `OK` instead of `KEY_CODE_YES`. So, it works if you duplicate the backspace handling code in the `OK` branch for 127.

, https://git.io/v9CJ5 in jarun/nnn
Thx ;)