exercism / sml

Exercism exercises in Standard ML.
https://exercism.org/tracks/sml
MIT License
27 stars 35 forks source link

bin/fetch-configlet: Make HTTP header detection case-insensitive #127

Closed sshine closed 4 years ago

sshine commented 4 years ago

Currently bin/fetch-configlet fails because of case sensitivity.

The awk script matches only uppercase headers, and for some reason, the curl command has lately been returning the Location header in lowercase:

location: https://github.com/exercism/configlet/releases/tag/v3.9.2

This change makes detection of latest configlet version independent of the casing of the HTTP headers returned by curl. Perl was used in this change rather than awk.