# content
@jdt It's actually in my application code:

if let Some(accept) = headers.get(header::ACCEPT) {
    if let Ok(accept_str) = accept.to_str() {
        if accept_str.contains("text/html") {
            log::debug!("Redirecting to presentation page");
            return Ok(AbstractResponse::Redirect(Redirect::to(&format!(
                "/@{username}"
            ))));
        }
        if accept_str.contains("application/activity+json") {
            log::debug!("Returning application/activity+json");
            return Ok(AbstractResponse::ActivityJson(ActivityJson(actor)));
        }
        if accept_str.contains("application/ld+json") {
            log::debug!("Returning application/ld+json");
            return Ok(AbstractResponse::LdJson(LdJson(actor)));
        }
    }
}

Just a priority issue with the existence of text/html. I'll rearrange.

# source.content
@jdt@enigmatick.social It's actually in my application code:

```
if let Some(accept) = headers.get(header::ACCEPT) {
    if let Ok(accept_str) = accept.to_str() {
        if accept_str.contains("text/html") {
            log::debug!("Redirecting to presentation page");
            return Ok(AbstractResponse::Redirect(Redirect::to(&format!(
                "/@{username}"
            ))));
        }
        if accept_str.contains("application/activity+json") {
            log::debug!("Returning application/activity+json");
            return Ok(AbstractResponse::ActivityJson(ActivityJson(actor)));
        }
        if accept_str.contains("application/ld+json") {
            log::debug!("Returning application/ld+json");
            return Ok(AbstractResponse::LdJson(LdJson(actor)));
        }
    }
}
```

Just a priority issue with the existence of `text/html`. I'll rearrange.