In `accept()` function you guys have this check: https://github.com/r-lib/httr/blob/34b956569ebaa20cd955150fad765cd834f38be4/R/headers.r?plain=1#L98-L100 I am using this function to specify the file type to be accepted using the file extension only, for example: ``` r httr::accept(".html") #> Error in `type[file == ""] <- empty`: #> ! replacement has length zero #> Show Traceback ``` What was the idea when you made this `if()` statement? Did you guys intend to - check that only extension is provided OR - detect the hidden files (files, that start their name with a `.`)? I think the function should be more clear about its intent. So far your code is checking for hidden files and not the extensions.
Activity