Does resting your head on a guy's shoulder mean anything?

So, basically, I was taking the train home the other day with this guy friend of mine, and I was feeling really tired so I asked him if I could rest my head on his shoulder for a while, and he said I could.

We're just friends and he's recently broken up with his girlfriend, but when I asked him to rest my head on his shoulder I didn't think it was romantic or anything, he's just my friend and I trust him so I asked him if I could do that.

Do you think he saw that as if I was flirting with him or something? Does it mean anything romantically? Because to me it doesn't, at least not with my friends...
Does resting your head on a guy's shoulder mean anything?
Post Opinion